package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 供应商组成员供应商实体类
 *
 * @author 吴旭
 */
public class SupplierGroupMemberSupplierEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -1140831802675880646L;
    private Long SupplierId;
    private String CatalogueName;            // 供应商所属目录
    private String SupplierNo;
    private String SupplierName;
    private Long GroupId;
    private String GroupName;
    private String GroupNo;
    private String Description;

    public String getGroupNo() {
        return GroupNo;
    }

    public void setGroupNo(String GroupNo) {
        this.GroupNo = GroupNo;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Long getSupplierId() {
        return SupplierId;
    }

    public void setSupplierId(Long SupplierId) {
        this.SupplierId = SupplierId;
    }

    public String getCatalogueName() {
        return CatalogueName;
    }

    public void setCatalogueName(String CatalogueName) {
        this.CatalogueName = CatalogueName;
    }

    public String getSupplierNo() {
        return SupplierNo;
    }

    public void setSupplierNo(String SupplierNo) {
        this.SupplierNo = SupplierNo;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String SupplierName) {
        this.SupplierName = SupplierName;
    }

    public Long getGroupId() {
        return GroupId;
    }

    public void setGroupId(Long GroupId) {
        this.GroupId = GroupId;
    }

    public String getGroupName() {
        return GroupName;
    }

    public void setGroupName(String GroupName) {
        this.GroupName = GroupName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof SupplierGroupMemberSupplierEntity)) {
            return false;
        }

        final SupplierGroupMemberSupplierEntity that = (SupplierGroupMemberSupplierEntity) o;

        return new EqualsBuilder()
                .append(this.getSupplierId(), that.getSupplierId())
                .append(this.getGroupId(), that.getGroupId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getGroupId().hashCode();
        result = 31 * result + this.getSupplierId().hashCode();
        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
